#include<iostream>
#include<string>
using namespace std;

int main()
{
	string p;
	cin >> p;
	int i;
	i = p.length()-1;
	
	int tmp = 0;
	for (;;)
	{
		if (p[tmp] == p[i]);
		else
		{
			cout << "false" << endl;
			exit(-1);
		}
		tmp = tmp + 1;
		i = i - 1;
		if (tmp > i) break;
	}
	cout << "true" << endl;
	return 0;
}